<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/xhtml;charset=utf-8" http-equiv="Content-Type"/>
<meta content="IE=9" http-equiv="X-UA-Compatible"/>
<meta content="Doxygen 1.8.13" name="generator"/>
<title>OpenCV: cv::VideoWriter Class Reference</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon"/>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script src="../../jquery.js" type="text/javascript"></script>
<script src="../../dynsections.js" type="text/javascript"></script>
<script src="../../tutorial-utils.js" type="text/javascript"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script src="../../search/searchdata.js" type="text/javascript"></script>
<script src="../../search/search.js" type="text/javascript"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js" type="text/javascript"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellpadding="0" cellspacing="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
    <span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script src="../../menudata.js" type="text/javascript"></script>
<script src="../../menu.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow" onkeydown="return searchBox.OnSearchSelectKey(event)" onmouseout="return searchBox.OnSearchSelectHide()" onmouseover="return searchBox.OnSearchSelectShow()">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe frameborder="0" id="MSearchResults" name="MSearchResults" src="javascript:void(0)">
</iframe>
</div>
<div class="navpath" id="nav-path">
  <ul>
<li class="navelem"><a class="el" href="../../d2/d75/namespacecv.html">cv</a></li><li class="navelem"><a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html">VideoWriter</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pub-static-methods">Static Public Member Functions</a> |
<a href="#pro-static-methods">Static Protected Member Functions</a> |
<a href="#pro-attribs">Protected Attributes</a> |
<a href="../../dc/df4/classcv_1_1VideoWriter-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">cv::VideoWriter Class Reference<div class="ingroups"><a class="el" href="../../dd/de7/group__videoio.html">Video I/O</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<p>Video writer class.  
 <a href="../../dd/d9e/classcv_1_1VideoWriter.html#details">More...</a></p>
<p><code>#include &lt;opencv2/videoio.hpp&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ad59c61d8881ba2b2da22cff5487465b5"><td align="right" class="memItemLeft" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#ad59c61d8881ba2b2da22cff5487465b5">VideoWriter</a> ()</td></tr>
<tr class="memdesc:ad59c61d8881ba2b2da22cff5487465b5"><td class="mdescLeft"> </td><td class="mdescRight">Default constructors.  <a href="#ad59c61d8881ba2b2da22cff5487465b5">More...</a><br/></td></tr>
<tr class="separator:ad59c61d8881ba2b2da22cff5487465b5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac3478f6257454209fa99249cc03a5c59"><td align="right" class="memItemLeft" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#ac3478f6257454209fa99249cc03a5c59">VideoWriter</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;filename, int <a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#afec93f94dc6c0b3e28f4dd153bc5a7f0">fourcc</a>, double fps, <a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> frameSize, bool isColor=true)</td></tr>
<tr class="separator:ac3478f6257454209fa99249cc03a5c59"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af52d129e2430c0287654e7d24e3bbcdc"><td align="right" class="memItemLeft" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#af52d129e2430c0287654e7d24e3bbcdc">VideoWriter</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;filename, int apiPreference, int <a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#afec93f94dc6c0b3e28f4dd153bc5a7f0">fourcc</a>, double fps, <a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> frameSize, bool isColor=true)</td></tr>
<tr class="separator:af52d129e2430c0287654e7d24e3bbcdc"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aeac5f67555dc843c35846ff8e7f75a13"><td align="right" class="memItemLeft" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#aeac5f67555dc843c35846ff8e7f75a13">VideoWriter</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;filename, int <a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#afec93f94dc6c0b3e28f4dd153bc5a7f0">fourcc</a>, double fps, const <a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> &amp;frameSize, const std::vector&lt; int &gt; &amp;params)</td></tr>
<tr class="separator:aeac5f67555dc843c35846ff8e7f75a13"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aff57b7ffbd654ef2f83e7ad76916426b"><td align="right" class="memItemLeft" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#aff57b7ffbd654ef2f83e7ad76916426b">VideoWriter</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;filename, int apiPreference, int <a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#afec93f94dc6c0b3e28f4dd153bc5a7f0">fourcc</a>, double fps, const <a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> &amp;frameSize, const std::vector&lt; int &gt; &amp;params)</td></tr>
<tr class="separator:aff57b7ffbd654ef2f83e7ad76916426b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aea9c6764cf067ff7af2576267d39c76c"><td align="right" class="memItemLeft" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#aea9c6764cf067ff7af2576267d39c76c">~VideoWriter</a> ()</td></tr>
<tr class="memdesc:aea9c6764cf067ff7af2576267d39c76c"><td class="mdescLeft"> </td><td class="mdescRight">Default destructor.  <a href="#aea9c6764cf067ff7af2576267d39c76c">More...</a><br/></td></tr>
<tr class="separator:aea9c6764cf067ff7af2576267d39c76c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a284e798e95847789024954abeec945d5"><td align="right" class="memItemLeft" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#a284e798e95847789024954abeec945d5">get</a> (int propId) const</td></tr>
<tr class="memdesc:a284e798e95847789024954abeec945d5"><td class="mdescLeft"> </td><td class="mdescRight">Returns the specified <a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html" title="Video writer class. ">VideoWriter</a> property.  <a href="#a284e798e95847789024954abeec945d5">More...</a><br/></td></tr>
<tr class="separator:a284e798e95847789024954abeec945d5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1dced14e3773cc1239972342afc274fc"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#a1dced14e3773cc1239972342afc274fc">getBackendName</a> () const</td></tr>
<tr class="memdesc:a1dced14e3773cc1239972342afc274fc"><td class="mdescLeft"> </td><td class="mdescRight">Returns used backend API name.  <a href="#a1dced14e3773cc1239972342afc274fc">More...</a><br/></td></tr>
<tr class="separator:a1dced14e3773cc1239972342afc274fc"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9a40803e5f671968ac9efa877c984d75"><td align="right" class="memItemLeft" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#a9a40803e5f671968ac9efa877c984d75">isOpened</a> () const</td></tr>
<tr class="memdesc:a9a40803e5f671968ac9efa877c984d75"><td class="mdescLeft"> </td><td class="mdescRight">Returns true if video writer has been successfully initialized.  <a href="#a9a40803e5f671968ac9efa877c984d75">More...</a><br/></td></tr>
<tr class="separator:a9a40803e5f671968ac9efa877c984d75"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0901c353cd5ea05bba455317dab81130"><td align="right" class="memItemLeft" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#a0901c353cd5ea05bba455317dab81130">open</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;filename, int <a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#afec93f94dc6c0b3e28f4dd153bc5a7f0">fourcc</a>, double fps, <a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> frameSize, bool isColor=true)</td></tr>
<tr class="memdesc:a0901c353cd5ea05bba455317dab81130"><td class="mdescLeft"> </td><td class="mdescRight">Initializes or reinitializes video writer.  <a href="#a0901c353cd5ea05bba455317dab81130">More...</a><br/></td></tr>
<tr class="separator:a0901c353cd5ea05bba455317dab81130"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a808ee7d60c58af071035a19e396bfa91"><td align="right" class="memItemLeft" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#a808ee7d60c58af071035a19e396bfa91">open</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;filename, int apiPreference, int <a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#afec93f94dc6c0b3e28f4dd153bc5a7f0">fourcc</a>, double fps, <a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> frameSize, bool isColor=true)</td></tr>
<tr class="separator:a808ee7d60c58af071035a19e396bfa91"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a99ce033f805afcdf609b6b4f19ab12d9"><td align="right" class="memItemLeft" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#a99ce033f805afcdf609b6b4f19ab12d9">open</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;filename, int <a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#afec93f94dc6c0b3e28f4dd153bc5a7f0">fourcc</a>, double fps, const <a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> &amp;frameSize, const std::vector&lt; int &gt; &amp;params)</td></tr>
<tr class="separator:a99ce033f805afcdf609b6b4f19ab12d9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8b44d21f9bb5a02f531b50bbb15b9527"><td align="right" class="memItemLeft" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#a8b44d21f9bb5a02f531b50bbb15b9527">open</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;filename, int apiPreference, int <a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#afec93f94dc6c0b3e28f4dd153bc5a7f0">fourcc</a>, double fps, const <a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> &amp;frameSize, const std::vector&lt; int &gt; &amp;params)</td></tr>
<tr class="separator:a8b44d21f9bb5a02f531b50bbb15b9527"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a674a3009537b05a655ad483acd8e09eb"><td align="right" class="memItemLeft" valign="top">virtual <a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html">VideoWriter</a> &amp; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#a674a3009537b05a655ad483acd8e09eb">operator&lt;&lt;</a> (const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp;image)</td></tr>
<tr class="memdesc:a674a3009537b05a655ad483acd8e09eb"><td class="mdescLeft"> </td><td class="mdescRight">Stream operator to write the next video frame.  <a href="#a674a3009537b05a655ad483acd8e09eb">More...</a><br/></td></tr>
<tr class="separator:a674a3009537b05a655ad483acd8e09eb"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad9a866bd422a46216993e8015f8f68cf"><td align="right" class="memItemLeft" valign="top">virtual <a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html">VideoWriter</a> &amp; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#ad9a866bd422a46216993e8015f8f68cf">operator&lt;&lt;</a> (const <a class="el" href="../../d7/d45/classcv_1_1UMat.html">UMat</a> &amp;image)</td></tr>
<tr class="separator:ad9a866bd422a46216993e8015f8f68cf"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a667f737e56d5ba6b0533c6c7bf941140"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#a667f737e56d5ba6b0533c6c7bf941140">release</a> ()</td></tr>
<tr class="memdesc:a667f737e56d5ba6b0533c6c7bf941140"><td class="mdescLeft"> </td><td class="mdescRight">Closes the video writer.  <a href="#a667f737e56d5ba6b0533c6c7bf941140">More...</a><br/></td></tr>
<tr class="separator:a667f737e56d5ba6b0533c6c7bf941140"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7ba668f440d8af5e1a92df58b2475816"><td align="right" class="memItemLeft" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#a7ba668f440d8af5e1a92df58b2475816">set</a> (int propId, double value)</td></tr>
<tr class="memdesc:a7ba668f440d8af5e1a92df58b2475816"><td class="mdescLeft"> </td><td class="mdescRight">Sets a property in the <a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html" title="Video writer class. ">VideoWriter</a>.  <a href="#a7ba668f440d8af5e1a92df58b2475816">More...</a><br/></td></tr>
<tr class="separator:a7ba668f440d8af5e1a92df58b2475816"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a30ebbc09c122332f62bd706b43f02a98"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#a30ebbc09c122332f62bd706b43f02a98">write</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> image)</td></tr>
<tr class="memdesc:a30ebbc09c122332f62bd706b43f02a98"><td class="mdescLeft"> </td><td class="mdescRight">Writes the next video frame.  <a href="#a30ebbc09c122332f62bd706b43f02a98">More...</a><br/></td></tr>
<tr class="separator:a30ebbc09c122332f62bd706b43f02a98"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:afec93f94dc6c0b3e28f4dd153bc5a7f0"><td align="right" class="memItemLeft" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#afec93f94dc6c0b3e28f4dd153bc5a7f0">fourcc</a> (char c1, char c2, char c3, char c4)</td></tr>
<tr class="memdesc:afec93f94dc6c0b3e28f4dd153bc5a7f0"><td class="mdescLeft"> </td><td class="mdescRight">Concatenates 4 chars to a fourcc code.  <a href="#afec93f94dc6c0b3e28f4dd153bc5a7f0">More...</a><br/></td></tr>
<tr class="separator:afec93f94dc6c0b3e28f4dd153bc5a7f0"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-static-methods"></a>
Static Protected Member Functions</h2></td></tr>
<tr class="memitem:a24352ee160cb574af9c0a2ee4738b184"><td align="right" class="memItemLeft" valign="top">static <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; IVideoWriter &gt; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#a24352ee160cb574af9c0a2ee4738b184">create</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;filename, int <a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#afec93f94dc6c0b3e28f4dd153bc5a7f0">fourcc</a>, double fps, <a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> frameSize, bool isColor=true)</td></tr>
<tr class="separator:a24352ee160cb574af9c0a2ee4738b184"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:ab6567d64fd202fe34284f0b11b79454c"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; IVideoWriter &gt; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#ab6567d64fd202fe34284f0b11b79454c">iwriter</a></td></tr>
<tr class="separator:ab6567d64fd202fe34284f0b11b79454c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8d73b66ca5bc85ec071052ed7f417b5f"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../dc/d3d/videoio_8hpp.html#a888ba48aa022b60aecf98a462aa1b638">CvVideoWriter</a> &gt; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#a8d73b66ca5bc85ec071052ed7f417b5f">writer</a></td></tr>
<tr class="separator:a8d73b66ca5bc85ec071052ed7f417b5f"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a id="details" name="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Video writer class. </p>
<p>The class provides C++ API for writing video files or image sequences. </p>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d3/d9c/samples_2cpp_2tutorial_code_2videoio_2video-write_2video-write_8cpp-example.html#_a8">samples/cpp/tutorial_code/videoio/video-write/video-write.cpp</a>, <a class="el" href="../../df/d94/samples_2cpp_2videowriter_basic_8cpp-example.html#_a4">samples/cpp/videowriter_basic.cpp</a>, and <a class="el" href="../../d8/d61/samples_2tapi_2hog_8cpp-example.html#_a8">samples/tapi/hog.cpp</a>.</dd>
</dl></div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ad59c61d8881ba2b2da22cff5487465b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad59c61d8881ba2b2da22cff5487465b5">◆ </a></span>VideoWriter() <span class="overload">[1/5]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::VideoWriter::VideoWriter </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>&lt;VideoWriter object&gt;</td><td>=</td><td>cv.VideoWriter(</td><td class="paramname"></td><td>)</td></tr><tr><td style="width: 20px;"></td><td>&lt;VideoWriter object&gt;</td><td>=</td><td>cv.VideoWriter(</td><td class="paramname">filename, fourcc, fps, frameSize[, isColor]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>&lt;VideoWriter object&gt;</td><td>=</td><td>cv.VideoWriter(</td><td class="paramname">filename, apiPreference, fourcc, fps, frameSize[, isColor]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>&lt;VideoWriter object&gt;</td><td>=</td><td>cv.VideoWriter(</td><td class="paramname">filename, fourcc, fps, frameSize, params</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>&lt;VideoWriter object&gt;</td><td>=</td><td>cv.VideoWriter(</td><td class="paramname">filename, apiPreference, fourcc, fps, frameSize, params</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Default constructors. </p>
<p>The constructors/functions initialize video writers.</p><ul>
<li>On Linux FFMPEG is used to write videos;</li>
<li>On Windows FFMPEG or MSWF or DSHOW is used;</li>
<li>On MacOSX AVFoundation is used. </li>
</ul>
</div>
</div>
<a id="ac3478f6257454209fa99249cc03a5c59"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac3478f6257454209fa99249cc03a5c59">◆ </a></span>VideoWriter() <span class="overload">[2/5]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::VideoWriter::VideoWriter </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp; </td>
          <td class="paramname"><em>filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>fourcc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>fps</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> </td>
          <td class="paramname"><em>frameSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>isColor</em> = <code>true</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>&lt;VideoWriter object&gt;</td><td>=</td><td>cv.VideoWriter(</td><td class="paramname"></td><td>)</td></tr><tr><td style="width: 20px;"></td><td>&lt;VideoWriter object&gt;</td><td>=</td><td>cv.VideoWriter(</td><td class="paramname">filename, fourcc, fps, frameSize[, isColor]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>&lt;VideoWriter object&gt;</td><td>=</td><td>cv.VideoWriter(</td><td class="paramname">filename, apiPreference, fourcc, fps, frameSize[, isColor]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>&lt;VideoWriter object&gt;</td><td>=</td><td>cv.VideoWriter(</td><td class="paramname">filename, fourcc, fps, frameSize, params</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>&lt;VideoWriter object&gt;</td><td>=</td><td>cv.VideoWriter(</td><td class="paramname">filename, apiPreference, fourcc, fps, frameSize, params</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filename</td><td>Name of the output video file. </td></tr>
    <tr><td class="paramname">fourcc</td><td>4-character code of codec used to compress the frames. For example, <a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#afec93f94dc6c0b3e28f4dd153bc5a7f0" title="Concatenates 4 chars to a fourcc code. ">VideoWriter::fourcc</a>('P','I','M','1') is a MPEG-1 codec, <a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#afec93f94dc6c0b3e28f4dd153bc5a7f0" title="Concatenates 4 chars to a fourcc code. ">VideoWriter::fourcc</a>('M','J','P','G') is a motion-jpeg codec etc. List of codes can be obtained at <a href="http://www.fourcc.org/codecs.php">Video Codecs by FOURCC</a> page. FFMPEG backend with MP4 container natively uses other values as fourcc code: see <a href="http://mp4ra.org/#/codecs">ObjectType</a>, so you may receive a warning message from OpenCV about fourcc code conversion. </td></tr>
    <tr><td class="paramname">fps</td><td>Framerate of the created video stream. </td></tr>
    <tr><td class="paramname">frameSize</td><td>Size of the video frames. </td></tr>
    <tr><td class="paramname">isColor</td><td>If it is not zero, the encoder will expect and encode color frames, otherwise it will work with grayscale frames.</td></tr>
  </table>
  </dd>
</dl>
<p><b>Tips:</b> </p><ul>
<li>With some backends <code>fourcc=-1</code> pops up the codec selection dialog from the system.</li>
<li>To save image sequence use a proper filename (eg. <code>img_%02d.jpg</code>) and <code>fourcc=0</code> OR <code>fps=0</code>. Use uncompressed image format (eg. <code>img_%02d.BMP</code>) to save raw frames.</li>
<li>Most codecs are lossy. If you want lossless video file you need to use a lossless codecs (eg. FFMPEG FFV1, Huffman HFYU, Lagarith LAGS, etc...)</li>
<li>If FFMPEG is enabled, using <code>codec=0; fps=0;</code> you can create an uncompressed (raw) video file. </li>
</ul>
</div>
</div>
<a id="af52d129e2430c0287654e7d24e3bbcdc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af52d129e2430c0287654e7d24e3bbcdc">◆ </a></span>VideoWriter() <span class="overload">[3/5]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::VideoWriter::VideoWriter </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp; </td>
          <td class="paramname"><em>filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>apiPreference</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>fourcc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>fps</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> </td>
          <td class="paramname"><em>frameSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>isColor</em> = <code>true</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>&lt;VideoWriter object&gt;</td><td>=</td><td>cv.VideoWriter(</td><td class="paramname"></td><td>)</td></tr><tr><td style="width: 20px;"></td><td>&lt;VideoWriter object&gt;</td><td>=</td><td>cv.VideoWriter(</td><td class="paramname">filename, fourcc, fps, frameSize[, isColor]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>&lt;VideoWriter object&gt;</td><td>=</td><td>cv.VideoWriter(</td><td class="paramname">filename, apiPreference, fourcc, fps, frameSize[, isColor]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>&lt;VideoWriter object&gt;</td><td>=</td><td>cv.VideoWriter(</td><td class="paramname">filename, fourcc, fps, frameSize, params</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>&lt;VideoWriter object&gt;</td><td>=</td><td>cv.VideoWriter(</td><td class="paramname">filename, apiPreference, fourcc, fps, frameSize, params</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. The <code>apiPreference</code> parameter allows to specify API backends to use. Can be used to enforce a specific reader implementation if multiple are available: e.g. <a class="el" href="../../d4/d15/group__videoio__flags__base.html#gga023786be1ee68a9105bf2e48c700294dacf10e9692c4166f74de62b7d00c377d0" title="Open and record video file or stream using the FFMPEG library. ">cv::CAP_FFMPEG</a> or <a class="el" href="../../d4/d15/group__videoio__flags__base.html#gga023786be1ee68a9105bf2e48c700294da38dcac6866f7608675dd35ba0b9c3c07" title="GStreamer. ">cv::CAP_GSTREAMER</a>. </p>
</div>
</div>
<a id="aeac5f67555dc843c35846ff8e7f75a13"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeac5f67555dc843c35846ff8e7f75a13">◆ </a></span>VideoWriter() <span class="overload">[4/5]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::VideoWriter::VideoWriter </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp; </td>
          <td class="paramname"><em>filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>fourcc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>fps</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> &amp; </td>
          <td class="paramname"><em>frameSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; int &gt; &amp; </td>
          <td class="paramname"><em>params</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>&lt;VideoWriter object&gt;</td><td>=</td><td>cv.VideoWriter(</td><td class="paramname"></td><td>)</td></tr><tr><td style="width: 20px;"></td><td>&lt;VideoWriter object&gt;</td><td>=</td><td>cv.VideoWriter(</td><td class="paramname">filename, fourcc, fps, frameSize[, isColor]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>&lt;VideoWriter object&gt;</td><td>=</td><td>cv.VideoWriter(</td><td class="paramname">filename, apiPreference, fourcc, fps, frameSize[, isColor]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>&lt;VideoWriter object&gt;</td><td>=</td><td>cv.VideoWriter(</td><td class="paramname">filename, fourcc, fps, frameSize, params</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>&lt;VideoWriter object&gt;</td><td>=</td><td>cv.VideoWriter(</td><td class="paramname">filename, apiPreference, fourcc, fps, frameSize, params</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. The <code>params</code> parameter allows to specify extra encoder parameters encoded as pairs (paramId_1, paramValue_1, paramId_2, paramValue_2, ... .) see <a class="el" href="../../d4/d15/group__videoio__flags__base.html#ga41c5cfa7859ae542b71b1d33bbd4d2b4" title="cv::VideoWriter generic properties identifier. ">cv::VideoWriterProperties</a> </p>
</div>
</div>
<a id="aff57b7ffbd654ef2f83e7ad76916426b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aff57b7ffbd654ef2f83e7ad76916426b">◆ </a></span>VideoWriter() <span class="overload">[5/5]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::VideoWriter::VideoWriter </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp; </td>
          <td class="paramname"><em>filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>apiPreference</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>fourcc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>fps</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> &amp; </td>
          <td class="paramname"><em>frameSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; int &gt; &amp; </td>
          <td class="paramname"><em>params</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>&lt;VideoWriter object&gt;</td><td>=</td><td>cv.VideoWriter(</td><td class="paramname"></td><td>)</td></tr><tr><td style="width: 20px;"></td><td>&lt;VideoWriter object&gt;</td><td>=</td><td>cv.VideoWriter(</td><td class="paramname">filename, fourcc, fps, frameSize[, isColor]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>&lt;VideoWriter object&gt;</td><td>=</td><td>cv.VideoWriter(</td><td class="paramname">filename, apiPreference, fourcc, fps, frameSize[, isColor]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>&lt;VideoWriter object&gt;</td><td>=</td><td>cv.VideoWriter(</td><td class="paramname">filename, fourcc, fps, frameSize, params</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>&lt;VideoWriter object&gt;</td><td>=</td><td>cv.VideoWriter(</td><td class="paramname">filename, apiPreference, fourcc, fps, frameSize, params</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
</div>
</div>
<a id="aea9c6764cf067ff7af2576267d39c76c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aea9c6764cf067ff7af2576267d39c76c">◆ </a></span>~VideoWriter()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual cv::VideoWriter::~VideoWriter </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Default destructor. </p>
<p>The method first calls <a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#a667f737e56d5ba6b0533c6c7bf941140" title="Closes the video writer. ">VideoWriter::release</a> to close the already opened file. </p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a24352ee160cb574af9c0a2ee4738b184"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a24352ee160cb574af9c0a2ee4738b184">◆ </a></span>create()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt;IVideoWriter&gt; cv::VideoWriter::create </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp; </td>
          <td class="paramname"><em>filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>fourcc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>fps</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> </td>
          <td class="paramname"><em>frameSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>isColor</em> = <code>true</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="afec93f94dc6c0b3e28f4dd153bc5a7f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afec93f94dc6c0b3e28f4dd153bc5a7f0">◆ </a></span>fourcc()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int cv::VideoWriter::fourcc </td>
          <td>(</td>
          <td class="paramtype">char </td>
          <td class="paramname"><em>c1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char </td>
          <td class="paramname"><em>c2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char </td>
          <td class="paramname"><em>c3</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char </td>
          <td class="paramname"><em>c4</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.VideoWriter_fourcc(</td><td class="paramname">c1, c2, c3, c4</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Concatenates 4 chars to a fourcc code. </p>
<dl class="section return"><dt>Returns</dt><dd>a fourcc code</dd></dl>
<p>This static method constructs the fourcc code of the codec to be used in the constructor <a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#ad59c61d8881ba2b2da22cff5487465b5" title="Default constructors. ">VideoWriter::VideoWriter</a> or <a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#a0901c353cd5ea05bba455317dab81130" title="Initializes or reinitializes video writer. ">VideoWriter::open</a>. </p>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../df/d94/samples_2cpp_2videowriter_basic_8cpp-example.html#a5">samples/cpp/videowriter_basic.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="a284e798e95847789024954abeec945d5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a284e798e95847789024954abeec945d5">◆ </a></span>get()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual double cv::VideoWriter::get </td>
          <td>(</td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>propId</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.VideoWriter.get(</td><td class="paramname">propId</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Returns the specified <a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html" title="Video writer class. ">VideoWriter</a> property. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">propId</td><td>Property identifier from <a class="el" href="../../d4/d15/group__videoio__flags__base.html#ga41c5cfa7859ae542b71b1d33bbd4d2b4" title="cv::VideoWriter generic properties identifier. ">cv::VideoWriterProperties</a> (eg. <a class="el" href="../../d4/d15/group__videoio__flags__base.html#gga41c5cfa7859ae542b71b1d33bbd4d2b4a1cc2ab47f60a115ff9624ff71715b93b" title="Current quality (0..100%) of the encoded videostream. Can be adjusted dynamically in some codecs...">cv::VIDEOWRITER_PROP_QUALITY</a>) or one of <a class="el" href="../../dc/dfc/group__videoio__flags__others.html">Additional flags for video I/O API backends</a></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Value for the specified property. Value 0 is returned when querying a property that is not supported by the backend used by the <a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html" title="Video writer class. ">VideoWriter</a> instance. </dd></dl>
</div>
</div>
<a id="a1dced14e3773cc1239972342afc274fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1dced14e3773cc1239972342afc274fc">◆ </a></span>getBackendName()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> cv::VideoWriter::getBackendName </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.VideoWriter.getBackendName(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Returns used backend API name. </p>
<dl class="section note"><dt>Note</dt><dd>Stream should be opened. </dd></dl>
</div>
</div>
<a id="a9a40803e5f671968ac9efa877c984d75"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9a40803e5f671968ac9efa877c984d75">◆ </a></span>isOpened()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool cv::VideoWriter::isOpened </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.VideoWriter.isOpened(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Returns true if video writer has been successfully initialized. </p>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../df/d94/samples_2cpp_2videowriter_basic_8cpp-example.html#a7">samples/cpp/videowriter_basic.cpp</a>, and <a class="el" href="../../d8/d61/samples_2tapi_2hog_8cpp-example.html#a39">samples/tapi/hog.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="a0901c353cd5ea05bba455317dab81130"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0901c353cd5ea05bba455317dab81130">◆ </a></span>open() <span class="overload">[1/4]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool cv::VideoWriter::open </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp; </td>
          <td class="paramname"><em>filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>fourcc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>fps</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> </td>
          <td class="paramname"><em>frameSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>isColor</em> = <code>true</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.VideoWriter.open(</td><td class="paramname">filename, fourcc, fps, frameSize[, isColor]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.VideoWriter.open(</td><td class="paramname">filename, apiPreference, fourcc, fps, frameSize[, isColor]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.VideoWriter.open(</td><td class="paramname">filename, fourcc, fps, frameSize, params</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.VideoWriter.open(</td><td class="paramname">filename, apiPreference, fourcc, fps, frameSize, params</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Initializes or reinitializes video writer. </p>
<p>The method opens video writer. Parameters are the same as in the constructor <a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#ad59c61d8881ba2b2da22cff5487465b5" title="Default constructors. ">VideoWriter::VideoWriter</a>. </p><dl class="section return"><dt>Returns</dt><dd><code>true</code> if video writer has been successfully initialized</dd></dl>
<p>The method first calls <a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#a667f737e56d5ba6b0533c6c7bf941140" title="Closes the video writer. ">VideoWriter::release</a> to close the already opened file. </p>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d3/d9c/samples_2cpp_2tutorial_code_2videoio_2video-write_2video-write_8cpp-example.html#a9">samples/cpp/tutorial_code/videoio/video-write/video-write.cpp</a>, <a class="el" href="../../df/d94/samples_2cpp_2videowriter_basic_8cpp-example.html#a6">samples/cpp/videowriter_basic.cpp</a>, and <a class="el" href="../../d8/d61/samples_2tapi_2hog_8cpp-example.html#a40">samples/tapi/hog.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="a808ee7d60c58af071035a19e396bfa91"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a808ee7d60c58af071035a19e396bfa91">◆ </a></span>open() <span class="overload">[2/4]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool cv::VideoWriter::open </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp; </td>
          <td class="paramname"><em>filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>apiPreference</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>fourcc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>fps</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> </td>
          <td class="paramname"><em>frameSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>isColor</em> = <code>true</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.VideoWriter.open(</td><td class="paramname">filename, fourcc, fps, frameSize[, isColor]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.VideoWriter.open(</td><td class="paramname">filename, apiPreference, fourcc, fps, frameSize[, isColor]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.VideoWriter.open(</td><td class="paramname">filename, fourcc, fps, frameSize, params</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.VideoWriter.open(</td><td class="paramname">filename, apiPreference, fourcc, fps, frameSize, params</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
</div>
</div>
<a id="a99ce033f805afcdf609b6b4f19ab12d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a99ce033f805afcdf609b6b4f19ab12d9">◆ </a></span>open() <span class="overload">[3/4]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool cv::VideoWriter::open </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp; </td>
          <td class="paramname"><em>filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>fourcc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>fps</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> &amp; </td>
          <td class="paramname"><em>frameSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; int &gt; &amp; </td>
          <td class="paramname"><em>params</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.VideoWriter.open(</td><td class="paramname">filename, fourcc, fps, frameSize[, isColor]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.VideoWriter.open(</td><td class="paramname">filename, apiPreference, fourcc, fps, frameSize[, isColor]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.VideoWriter.open(</td><td class="paramname">filename, fourcc, fps, frameSize, params</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.VideoWriter.open(</td><td class="paramname">filename, apiPreference, fourcc, fps, frameSize, params</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
</div>
</div>
<a id="a8b44d21f9bb5a02f531b50bbb15b9527"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8b44d21f9bb5a02f531b50bbb15b9527">◆ </a></span>open() <span class="overload">[4/4]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool cv::VideoWriter::open </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp; </td>
          <td class="paramname"><em>filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>apiPreference</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>fourcc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>fps</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga346f563897249351a34549137c8532a0">Size</a> &amp; </td>
          <td class="paramname"><em>frameSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; int &gt; &amp; </td>
          <td class="paramname"><em>params</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.VideoWriter.open(</td><td class="paramname">filename, fourcc, fps, frameSize[, isColor]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.VideoWriter.open(</td><td class="paramname">filename, apiPreference, fourcc, fps, frameSize[, isColor]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.VideoWriter.open(</td><td class="paramname">filename, fourcc, fps, frameSize, params</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.VideoWriter.open(</td><td class="paramname">filename, apiPreference, fourcc, fps, frameSize, params</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
</div>
</div>
<a id="a674a3009537b05a655ad483acd8e09eb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a674a3009537b05a655ad483acd8e09eb">◆ </a></span>operator&lt;&lt;() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html">VideoWriter</a>&amp; cv::VideoWriter::operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp; </td>
          <td class="paramname"><em>image</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Stream operator to write the next video frame. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#a30ebbc09c122332f62bd706b43f02a98" title="Writes the next video frame. ">write</a> </dd></dl>
</div>
</div>
<a id="ad9a866bd422a46216993e8015f8f68cf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad9a866bd422a46216993e8015f8f68cf">◆ </a></span>operator&lt;&lt;() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html">VideoWriter</a>&amp; cv::VideoWriter::operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d7/d45/classcv_1_1UMat.html">UMat</a> &amp; </td>
          <td class="paramname"><em>image</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#a30ebbc09c122332f62bd706b43f02a98" title="Writes the next video frame. ">write</a> </dd></dl>
</div>
</div>
<a id="a667f737e56d5ba6b0533c6c7bf941140"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a667f737e56d5ba6b0533c6c7bf941140">◆ </a></span>release()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::VideoWriter::release </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.VideoWriter.release(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Closes the video writer. </p>
<p>The method is automatically called by subsequent <a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html#a0901c353cd5ea05bba455317dab81130" title="Initializes or reinitializes video writer. ">VideoWriter::open</a> and by the <a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html" title="Video writer class. ">VideoWriter</a> destructor. </p>
</div>
</div>
<a id="a7ba668f440d8af5e1a92df58b2475816"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7ba668f440d8af5e1a92df58b2475816">◆ </a></span>set()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool cv::VideoWriter::set </td>
          <td>(</td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>propId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double </td>
          <td class="paramname"><em>value</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.VideoWriter.set(</td><td class="paramname">propId, value</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Sets a property in the <a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html" title="Video writer class. ">VideoWriter</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">propId</td><td>Property identifier from <a class="el" href="../../d4/d15/group__videoio__flags__base.html#ga41c5cfa7859ae542b71b1d33bbd4d2b4" title="cv::VideoWriter generic properties identifier. ">cv::VideoWriterProperties</a> (eg. <a class="el" href="../../d4/d15/group__videoio__flags__base.html#gga41c5cfa7859ae542b71b1d33bbd4d2b4a1cc2ab47f60a115ff9624ff71715b93b" title="Current quality (0..100%) of the encoded videostream. Can be adjusted dynamically in some codecs...">cv::VIDEOWRITER_PROP_QUALITY</a>) or one of <a class="el" href="../../dc/dfc/group__videoio__flags__others.html">Additional flags for video I/O API backends</a></td></tr>
    <tr><td class="paramname">value</td><td>Value of the property. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if the property is supported by the backend used by the <a class="el" href="../../dd/d9e/classcv_1_1VideoWriter.html" title="Video writer class. ">VideoWriter</a> instance. </dd></dl>
</div>
</div>
<a id="a30ebbc09c122332f62bd706b43f02a98"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a30ebbc09c122332f62bd706b43f02a98">◆ </a></span>write()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::VideoWriter::write </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>image</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.VideoWriter.write(</td><td class="paramname">image</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Writes the next video frame. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">image</td><td>The written frame. In general, color images are expected in BGR format.</td></tr>
  </table>
  </dd>
</dl>
<p>The function/method writes the specified image to video file. It must have the same size as has been specified when opening the video writer. </p>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../df/d94/samples_2cpp_2videowriter_basic_8cpp-example.html#a9">samples/cpp/videowriter_basic.cpp</a>.</dd>
</dl>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="ab6567d64fd202fe34284f0b11b79454c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab6567d64fd202fe34284f0b11b79454c">◆ </a></span>iwriter</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt;IVideoWriter&gt; cv::VideoWriter::iwriter</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a8d73b66ca5bc85ec071052ed7f417b5f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8d73b66ca5bc85ec071052ed7f417b5f">◆ </a></span>writer</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt;<a class="el" href="../../dc/d3d/videoio_8hpp.html#a888ba48aa022b60aecf98a462aa1b638">CvVideoWriter</a>&gt; cv::VideoWriter::writer</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>opencv2/<a class="el" href="../../dc/d3d/videoio_8hpp.html">videoio.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:43 for OpenCV by  <a href="http://www.doxygen.org/index.html">
<img alt="doxygen" class="footer" src="../../doxygen.png"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
